package com.zaimokuza.cn.service.impl;

import com.zaimokuza.cn.entity.log.RequestLog;
import com.zaimokuza.cn.mapper.LogMapper;
import com.zaimokuza.cn.service.LogService;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author zaimokuza
 */
@Service
public class LogServiceImpl implements LogService {

    @Resource
    private LogMapper logMapper;

    @Async
    @Override
    public void saveRequestLog(RequestLog requestLog) {
        logMapper.insertRequestLog(requestLog);
    }

}
